//var perry = window.open("http://www.pbfcomics.com");
//document.write(document.location.href);
//var form = window.open("example_getinfo.html");

//attach(form);
var userForm = document.forms.userinfo;
var test = 1;
document.write(userForm.method);
document.write("<br>");
document.write(userForm.action);
document.write("<br>");

var nameField = userForm.elements.name;
nameField.value = "Eugene";

function validInfo(form){
	return form.elememts.name.value != "" &&
		/^.+@.+\.\w{2,3}$/.test(form.elements.email.value);
}
userForm.elements.send.onclick = function(){
	alert("Click");
};

/*
var encoded = encodeURIComponent("aztec empire");
document.write(encoded);
document.write("<br>");
document.write(decodeURIComponent(encoded));
*/
